package com.aos.erp.schools.model.gatherschool.ro;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 驾校信息表
 * </p>
 *
 * @author ywb
 * @since 2018-11-02
 */
@Data
public class QueryGatherSchoolRo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车管所ID
     */
    @ApiModelProperty(value = "车管所ID",  dataType = "long")
    private Long divisionId;
    /**
     * 驾校名称
     */
    @Size(max=50,min=1,message="驾校名称汉字+字母+数字，50字符内！")
    @ApiModelProperty(value = "驾校名称",  dataType = "String")
    private String name;

    /**
     * 驾校代码
     */
    @Size(max=10,min=3,message="驾校代码10字符内！")
    @ApiModelProperty(value = "驾校代码", dataType = "String")
    private String code;

    /**
     * 省ID
     */
    @ApiModelProperty(value = "省ID", dataType = "long")
    private Long provinceId;
    /**
     * 市ID
     */
    @ApiModelProperty(value = "市ID", dataType = "long")
    private Long cityId;
    /**
     * 区县ID
     */
    @ApiModelProperty(value = "区县ID", dataType = "long")
    private Long areaId;

    /**
     * 分页
     */
    @ApiModelProperty(value = "分页", dataType = "long")
    private Long pageIndex;

    /**
     * 分页
     */
    @ApiModelProperty(value = "分页", dataType = "long")
    private Long pageSize;

    @Override
    public String toString() {
        return "QueryGatherSchoolRo{" +
                "divisionId=" + divisionId +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", provinceId=" + provinceId +
                ", cityId=" + cityId +
                ", areaId=" + areaId +
                ", pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                '}';
    }
}
